const express = require('express'),
    router = express.Router(),
    fs = require('fs'),
    path = require('path')

router.get('/video/wmzb', (req, res) => {
    res.set({
        'Content-Type': 'application/octet-stream',
        'Content-Disposition': 'attachment; filename=wmzb.mp4',
        // 'Content-Length': stats.size
    });
    fs.createReadStream(path.join(__dirname, '../../public/video/WMZ辈.HDTC高清版.mp4')).pipe(res);
});

module.exports = router;